<template>
<div>
 <el-button type="primary" @click="add">添加</el-button>
    <v-list @edit="willEdit"></v-list>
    <v-from :info="info" ref="form"></v-from>
</div>
</template>
<script>

import vList from "./components/list.vue";
import vFrom from "./components/from.vue";
import toggle from "../../mixins/tooggle"
export default {
mixins:[toggle],
components:{
    vFrom,
    vList
},
data(){
    return{
        info:{
            isshow:false,
            isadd:true
        }
    }
},
methods:{ 
    add(){
        this.info.isshow=true;
        this.info.isadd=true
    }
 },
}
</script>
<style lang="less" scoped>
</style>